#!/usr/bin/env python
# -*- encoding: utf-8 -*-
# Project: spd-sxmcc
"""
@author: lyndon
@time Created on 2019/2/7 7:19
@desc
"""
__author__ = 'Eva_J'
# 方法二：manage.dict()共享数据
from multiprocessing import Process, Manager

manage = Manager()

dic = manage.dict()


def Foo(i):
    dic[i] = 100 + i
    print(dic.values())


if __name__ == "__main__":
    for i in range(2):
        p = Process(target=Foo, args=(i,))
        p.start()
        p.join()
